﻿using System;

namespace Duhking
{
    public static class DuhkingExtensions
    {
        public static bool CanBe<T>(this object obj)
        {
            InterfaceDuhker duhker = new InterfaceDuhker();
            return duhker.CanDuhk<T>(obj);
        }

        public static T AsType<T>(this object obj) where T: class
        {
            InterfaceDuhker duhker = new InterfaceDuhker();
            return duhker.Duhk<T>(obj);
        }
    }
}
